<template>
  <view class="login-phone">
    <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#ffffff"></uni-segmented-control>
    <view class="content">
      <view v-show="current === 0"><or-login></or-login></view>
      <view v-show="current === 1"><login-phone></login-phone></view>
    </view>
  </view>
</template>

<script>
export default {
  name: 'loginx',
  data() {
    return {
      items: ['二维码登录', '手机号登录'],
      current: 0
    }
  },
  methods: {
    onClickItem(e) {
      this.current = e.currentIndex
    }
  }
}
</script>

<style lang="scss">
.login-phone {
  height: 100vh;
}
</style>
